
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>安装与调试 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="appda-bao-ji-jie-kou-diao-yong.html" />
    
    
    <link rel="prev" href="xu-yao-kan-de-kuang-jia-wen-dang.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    前言
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="jie-shao.html">
            
                <a href="jie-shao.html">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="xu-yao-kan-de-kuang-jia-wen-dang.html">
            
                <a href="xu-yao-kan-de-kuang-jia-wen-dang.html">
            
                    
                    需要看的框架文档
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="1.2" data-path="an-zhuang.html">
            
                <a href="an-zhuang.html">
            
                    
                    安装与调试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="appda-bao-ji-jie-kou-diao-yong.html">
            
                <a href="appda-bao-ji-jie-kou-diao-yong.html">
            
                    
                    App打包及接口调用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="chang-jian-wen-ti.html">
            
                <a href="chang-jian-wen-ti.html">
            
                    
                    常见问题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="chang-jian-wen-ti/muikuang-jia-yu-fa-wen-ti.html">
            
                <a href="chang-jian-wen-ti/muikuang-jia-yu-fa-wen-ti.html">
            
                    
                    mui框架语法问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="chang-jian-wen-ti/qi-ta-wen-ti.html">
            
                <a href="chang-jian-wen-ti/qi-ta-wen-ti.html">
            
                    
                    其他问题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >安装与调试</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="&#x5B89;&#x88C5;">&#x5B89;&#x88C5;</h2>
<ul>
<li><p>&#x4E0B;&#x8F7D;<a href="http://www.dcloud.io/index.html" target="_blank">HBuilder IDE</a>&#x5F00;&#x53D1;&#x5DE5;&#x5177;&#xFF0C;&#x5176;&#x5B9E;HBuilder&#x662F;dcloud &#x628A;eclipse&#x7684;&#x6539;&#x9020;&#x6210;&#x4E00;&#x4E2A;&#x4E13;&#x95E8;&#x5E94;&#x7528;&#x4E8E;app&#x6253;&#x5305;&#x3001;&#x591A;&#x79CD;&#x8BED;&#x8A00;&#x652F;&#x6301;&#xFF1A;php&#x3001;jsp&#x3001;ruby&#x3001;python&#x3001;nodejs&#x7B49;web&#x8BED;&#x8A00;&#xFF0C;less&#x3001;coffee&#x7B49;&#x7F16;&#x8BD1;&#x578B;&#x8BED;&#x8A00;&#x5747;&#x652F;&#x6301;&#x7684;&#x5F00;&#x53D1;&#x5DE5;&#x5177;</p>
</li>
<li><p>&#x4E0B;&#x8F7D;<a href="https://nodejs.org/en/" target="_blank">node.js</a>&#xFF0C;&#x4F5C;&#x4E3A;&#x524D;&#x7AEF;web&#x7684;&#x8FD0;&#x884C;&#x73AF;&#x5883;&#x3002;&#x6211;&#x5F53;&#x524D;&#x7684;node.js&#x7248;&#x672C;&#x662F;6.10.0 npm&#x7248;&#x672C;&#x662F;5.4.0</p>
</li>
</ul>
<ul>
<li>app&#x6253;&#x5305;&#x5B8C;&#x5168;&#x662F;&#x57FA;&#x4E8E;manifest.json&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x5B83;&#x4E3B;&#x8981;&#x662F;&#x7528;&#x6765;&#x914D;&#x7F6E;app&#x7684;&#x57FA;&#x672C;&#x4FE1;&#x606F;&#xFF08;&#x7248;&#x672C;&#x53F7;&#x3001;appid&#x7B49;&#xFF09;&#x3001;&#x56FE;&#x6807;(app&#x7684;&#x5E94;&#x7528;&#x56FE;&#x6807;)&#x3001;sdk&#x914D;&#x7F6E;&#x3001;&#x6A21;&#x5757;&#x6743;&#x9650;&#x914D;&#x7F6E;&#x3001;&#x9875;&#x9762;&#x5F15;&#x7528;&#x5173;&#x7CFB;&#x3001;&#x4EE3;&#x7801;&#x89C6;&#x56FE;&#xFF0C;&#x5177;&#x4F53;&#x53C2;&#x770B;dcloud&#x63D0;&#x4F9B;&#x7684;<a href="http://ask.dcloud.net.cn/docs/#//ask.dcloud.net.cn/article/94" target="_blank">&#x6587;&#x6863;</a>&#x3002;</li>
</ul>
<h3 id="npm&#x521D;&#x59CB;&#x5316;">npm&#x521D;&#x59CB;&#x5316;</h3>
<pre><code>    npm install

    //&#x5F00;&#x53D1;

    npm run dev

    //&#x53D1;&#x5E03;

    npm run bulid
`
</code></pre><h5 id="packagejson&#x5185;&#x5BB9;&#x5982;&#x4E0B;">package.json&#x5185;&#x5BB9;&#x5982;&#x4E0B;</h5>
<pre><code>{
  &quot;name&quot;: &quot;vue-meituan&quot;,
  &quot;version&quot;: &quot;1.0.0&quot;,
  &quot;description&quot;: &quot;A Vue.js project&quot;,
  &quot;author&quot;: &quot;bxm&quot;,
  &quot;private&quot;: true,
  &quot;scripts&quot;: {
    &quot;dev&quot;: &quot;node build/dev-server.js&quot;,
    &quot;start&quot;: &quot;node build/dev-server.js&quot;,
    &quot;build&quot;: &quot;node build/build.js&quot;,
    &quot;unit&quot;: &quot;cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run&quot;,
    &quot;e2e&quot;: &quot;node test/e2e/runner.js&quot;,
    &quot;test&quot;: &quot;npm run unit &amp;&amp; npm run e2e&quot;,
    &quot;lint&quot;: &quot;eslint --ext .js,.vue src test/unit/specs test/e2e/specs&quot;
  },
  &quot;dependencies&quot;: {
    &quot;axios&quot;: &quot;^0.16.2&quot;,
    &quot;better-scroll&quot;: &quot;^1.2.3&quot;,
    &quot;element-ui&quot;: &quot;^1.4.3&quot;,
    &quot;jade&quot;: &quot;^1.11.0&quot;,
    &quot;jade-loader&quot;: &quot;^0.8.0&quot;,
    &quot;jsonp&quot;: &quot;^0.2.1&quot;,
    &quot;mint-ui&quot;: &quot;^2.2.9&quot;,
    &quot;moment&quot;: &quot;^2.18.1&quot;,
    &quot;pug&quot;: &quot;^2.0.0-rc.4&quot;,
    &quot;pug-loader&quot;: &quot;^2.3.0&quot;,
    &quot;vue&quot;: &quot;^2.4.2&quot;,
    &quot;vue-lazyload&quot;: &quot;^1.1.3&quot;,
    &quot;vue-resource&quot;: &quot;^1.3.4&quot;,
    &quot;vue-router&quot;: &quot;^2.7.0&quot;,
    &quot;vuex&quot;: &quot;^3.0.1&quot;
  },
  &quot;devDependencies&quot;: {
    &quot;autoprefixer&quot;: &quot;^7.1.2&quot;,
    &quot;babel-core&quot;: &quot;^6.22.1&quot;,
    &quot;babel-eslint&quot;: &quot;^7.1.1&quot;,
    &quot;babel-loader&quot;: &quot;^7.1.1&quot;,
    &quot;babel-plugin-istanbul&quot;: &quot;^4.1.1&quot;,
    &quot;babel-plugin-transform-runtime&quot;: &quot;^6.22.0&quot;,
    &quot;babel-preset-env&quot;: &quot;^1.3.2&quot;,
    &quot;babel-preset-stage-2&quot;: &quot;^6.22.0&quot;,
    &quot;babel-register&quot;: &quot;^6.22.0&quot;,
    &quot;chai&quot;: &quot;^3.5.0&quot;,
    &quot;chalk&quot;: &quot;^2.0.1&quot;,
    &quot;chromedriver&quot;: &quot;^2.27.2&quot;,
    &quot;connect-history-api-fallback&quot;: &quot;^1.3.0&quot;,
    &quot;copy-webpack-plugin&quot;: &quot;^4.0.1&quot;,
    &quot;cross-env&quot;: &quot;^5.0.1&quot;,
    &quot;cross-spawn&quot;: &quot;^5.0.1&quot;,
    &quot;css-loader&quot;: &quot;^0.28.0&quot;,
    &quot;cssnano&quot;: &quot;^3.10.0&quot;,
    &quot;eslint&quot;: &quot;^3.19.0&quot;,
    &quot;eslint-config-standard&quot;: &quot;^6.2.1&quot;,
    &quot;eslint-friendly-formatter&quot;: &quot;^3.0.0&quot;,
    &quot;eslint-loader&quot;: &quot;^1.7.1&quot;,
    &quot;eslint-plugin-html&quot;: &quot;^3.0.0&quot;,
    &quot;eslint-plugin-promise&quot;: &quot;^3.4.0&quot;,
    &quot;eslint-plugin-standard&quot;: &quot;^2.0.1&quot;,
    &quot;eventsource-polyfill&quot;: &quot;^0.9.6&quot;,
    &quot;express&quot;: &quot;^4.14.1&quot;,
    &quot;extract-text-webpack-plugin&quot;: &quot;^2.0.0&quot;,
    &quot;file-loader&quot;: &quot;^0.11.1&quot;,
    &quot;friendly-errors-webpack-plugin&quot;: &quot;^1.1.3&quot;,
    &quot;html-webpack-plugin&quot;: &quot;^2.28.0&quot;,
    &quot;http-proxy-middleware&quot;: &quot;^0.17.3&quot;,
    &quot;inject-loader&quot;: &quot;^3.0.0&quot;,
    &quot;karma&quot;: &quot;^1.4.1&quot;,
    &quot;karma-coverage&quot;: &quot;^1.1.1&quot;,
    &quot;karma-mocha&quot;: &quot;^1.3.0&quot;,
    &quot;karma-phantomjs-launcher&quot;: &quot;^1.0.2&quot;,
    &quot;karma-phantomjs-shim&quot;: &quot;^1.4.0&quot;,
    &quot;karma-sinon-chai&quot;: &quot;^1.3.1&quot;,
    &quot;karma-sourcemap-loader&quot;: &quot;^0.3.7&quot;,
    &quot;karma-spec-reporter&quot;: &quot;0.0.31&quot;,
    &quot;karma-webpack&quot;: &quot;^2.0.2&quot;,
    &quot;mocha&quot;: &quot;^3.2.0&quot;,
    &quot;nightwatch&quot;: &quot;^0.9.12&quot;,
    &quot;node-sass&quot;: &quot;^4.5.3&quot;,
    &quot;opn&quot;: &quot;^5.1.0&quot;,
    &quot;optimize-css-assets-webpack-plugin&quot;: &quot;^2.0.0&quot;,
    &quot;ora&quot;: &quot;^1.2.0&quot;,
    &quot;phantomjs-prebuilt&quot;: &quot;^2.1.14&quot;,
    &quot;rimraf&quot;: &quot;^2.6.0&quot;,
    &quot;sass-loader&quot;: &quot;^6.0.6&quot;,
    &quot;selenium-server&quot;: &quot;^3.0.1&quot;,
    &quot;semver&quot;: &quot;^5.3.0&quot;,
    &quot;shelljs&quot;: &quot;^0.7.6&quot;,
    &quot;sinon&quot;: &quot;^2.1.0&quot;,
    &quot;sinon-chai&quot;: &quot;^2.8.0&quot;,
    &quot;url-loader&quot;: &quot;^0.5.8&quot;,
    &quot;vue-loader&quot;: &quot;^13.0.4&quot;,
    &quot;vue-style-loader&quot;: &quot;^3.0.1&quot;,
    &quot;vue-template-compiler&quot;: &quot;^2.4.2&quot;,
    &quot;webpack&quot;: &quot;^2.6.1&quot;,
    &quot;webpack-bundle-analyzer&quot;: &quot;^2.2.1&quot;,
    &quot;webpack-dev-middleware&quot;: &quot;^1.10.0&quot;,
    &quot;webpack-hot-middleware&quot;: &quot;^2.18.0&quot;,
    &quot;webpack-merge&quot;: &quot;^4.1.0&quot;
  },
  &quot;engines&quot;: {
    &quot;node&quot;: &quot;&gt;= 4.0.0&quot;,
    &quot;npm&quot;: &quot;&gt;= 3.0.0&quot;
  },
  &quot;browserslist&quot;: [
    &quot;&gt; 1%&quot;,
    &quot;last 2 versions&quot;,
    &quot;not ie &lt;= 8&quot;
  ]
}
</code></pre><h2 id="&#x8C03;&#x8BD5;">&#x8C03;&#x8BD5;</h2>
<ul>
<li>chrome&#x6D4F;&#x89C8;&#x5668;pc&#x7AEF;&#x8C03;&#x8BD5;&#x548C;hbuilder&#x771F;&#x673A;&#x8C03;&#x8BD5;&#xFF0C;chrome&#x8C03;&#x8BD5;&#x6BD4;&#x8F83;&#x65B9;&#x4FBF;(&#x6027;&#x80FD;&#x53CA;&#x67E5;&#x770B;&#x4EE3;&#x7801;&#x663E;&#x793A;&#x6BD4;&#x8F83;&#x597D;)&#xFF0C;&#x4EE5;&#x4E0B;&#x53EA;&#x4EE5;chrome&#x6D4F;&#x89C8;&#x5668;&#x8BB2;&#x89E3;</li>
</ul>
<h3 id="pc&#x7AEF;&#x5F00;&#x53D1;&#x8C03;&#x8BD5;">pc&#x7AEF;&#x5F00;&#x53D1;&#x8C03;&#x8BD5;</h3>
<pre><code>$1. &#x4E0B;&#x8F7D;&#x5B8C;&#x6240;&#x6709;&#x4F9D;&#x8D56;&#x6267;&#x884C;&#x7F16;&#x8BD1;&#x540E;&#x6253;&#x5F00;build&#x6587;&#x4EF6;&#x5939;&#x4E0B;login/login.html&#x9875;&#x9762;&#xFF0C;&#x6253;&#x5F00;chrome F12&#x6309;&#x952E;&#x53EF;&#x4EE5;&#x6253;&#x5F00;&#x5F00;&#x53D1;&#x5DE5;&#x5177;&#x67E5;&#x770B;html&#x7684;dom&#x5143;&#x7D20;&#x548C;&#x6837;&#x5F0F;&#x4EE5;&#x53CA;js&#x4EE3;&#x7801;

$2. &#x547D;&#x4EE4;&#x884C;&#x5DE5;&#x5177;&#x6267;&#x884C;gulp dev&#x76D1;&#x5BDF;&#x4EE3;&#x7801;&#x6539;&#x52A8;&#xFF0C;&#x5982;&#x679C;&#x6709;&#x62A5;&#x9519;&#xFF0C;&#x91CD;&#x65B0;&#x6253;&#x5F00;&#x5F53;&#x524D;&#x6587;&#x4EF6;&#x76EE;&#x5F55;&#x6267;&#x884C;gulp dev&#xFF0C;&#x4FEE;&#x6539;&#x4EE3;&#x7801;&#x540E;&#xFF0C;&#x5237;&#x65B0;&#x9875;&#x9762;&#x5C31;&#x53EF;&#x4EE5;&#x67E5;&#x770B;&#x6539;&#x52A8;
</code></pre><h3 id="&#x79FB;&#x52A8;&#x7AEF;&#x5F00;&#x53D1;&#x8C03;&#x8BD5;">&#x79FB;&#x52A8;&#x7AEF;&#x5F00;&#x53D1;&#x8C03;&#x8BD5;</h3>
<pre><code>$1. &#x7528;&#x624B;&#x673A;&#x901A;&#x8FC7;usb&#x7EBF;&#x8FDE;&#x63A5;&#x7535;&#x8111;&#xFF0C;&#x6253;&#x5F00;hbuilder IDE&#x7684;&#x771F;&#x673A;&#x8C03;&#x8BD5;&#xFF0C;&#x53EF;&#x4EE5;&#x67E5;&#x770B;&#x6570;&#x636E;&#x8F93;&#x51FA;&#x548C;&#x4EE3;&#x7801;&#x4FEE;&#x6539;&#x7ED3;&#x679C;
</code></pre><p><img src="http://osk1hpe2y.bkt.clouddn.com/17-11-8/78948281.jpg" alt="&#x56FE;&#x7247;"></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="xu-yao-kan-de-kuang-jia-wen-dang.html" class="navigation navigation-prev " aria-label="Previous page: 需要看的框架文档">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="appda-bao-ji-jie-kou-diao-yong.html" class="navigation navigation-next " aria-label="Next page: App打包及接口调用">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"安装与调试","level":"1.2","depth":1,"next":{"title":"App打包及接口调用","level":"1.3","depth":1,"path":"appda-bao-ji-jie-kou-diao-yong.md","ref":"appda-bao-ji-jie-kou-diao-yong.md","articles":[]},"previous":{"title":"需要看的框架文档","level":"1.1.2","depth":2,"path":"xu-yao-kan-de-kuang-jia-wen-dang.md","ref":"xu-yao-kan-de-kuang-jia-wen-dang.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"an-zhuang.md","mtime":"2017-12-30T13:52:33.033Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-12-30T13:57:58.239Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

